package com.wind.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author: i promise
 * @date: 2018/8/8 20:53
 */
@Configuration
@ConfigurationProperties(prefix="telalarm-config")
public class TelAlarmConfig {

    @Bean(name="TelAlarmConfig",initMethod="initTelAlarm")
    public TelAlarmConfig propConfig() {
        return new TelAlarmConfig();
    }



    public List<String> SAA = new ArrayList<>();


    public static  String[] tel_alarm_num;


    public List<String> getSAA() {
        return SAA;
    }


    public void initTelAlarm() {

        for (String tempSAA:SAA)
        {
            tel_alarm_num = tempSAA.split(",");

        }




    }

}
